Overview

The LSM303DLH combines a digital 3-axis accelerometer and 3-axis magnetometer into a single package that is ideal for making a tilt-compensated compass. The six independent readings, whose sensitivities can be set in the ranges of ¡À2 to ¡À8 g and ¡À1.3 to ¡À8.1 gauss, are available through an I2C interface. The LSM303DLH is a great IC, but its small package makes it difficult for the typical student or hobbyist to use. This LSM303 carrier board includes voltage regulators and a level-shifting circuit that allows operation from 3V to 5.5 V, and the anti-reverse connector makes it easy to connect with Arduino sensor shield.

The module includes two voltage regulators that provide the 1.8 V and 3 V required by the LSM303, which allows the sensor to be powered from a single 3.3V¨C 5.5 V supply. The breakout board also includes a circuit that shifts the I2C clock and data lines to the same logic voltage level as the supplied VCC, making it simple to interface the board with 3.3 V or 5 V systems.

This sensor is a carrier/breakout module for the ST L3GD20 three-axis gyroscope, which measures the angular rates of rotation about the pitch (x), roll (y), and yaw (z) axes. Angular velocity measurements with a configurable range of ¡À250¡ã/s, ¡À500¡ã/s, or ¡À2000¡ã/s can be read through a digital I2C or SPI interface. The board has a 3.3 V linear regulator and integrated level-shifters that allow it to work over an input voltage range of 3.3V¨C5.5 V. The 0.1¡å pin spacing making it easy to use with Arduino.

Specifications

Example

We recommend careful reading of the LSM303DLH datasheet before using this product.With the CS pin in its default state (pulled up to 3.3V), the L3GD20 can be configured and its angular velocity readings can be queried through the I2C bus. We will show an example on how to use this module with Arduino.

Connections

For Arduino UNO/Duemilanove:

For Arduino Mega:

If you have the Sensor Shield, it is pretty easy to connect. Plug and play!

Code

Download this library and add it to library file of Arduino IDE.

Open the example Serial:

Upload the sketch to Arduino.

Then connect this module with Arduino and restart it.

Open the Serial Monitor of Arduino IDE, you could see the result:

Dimension

Document and Download

Product list